package com.project.seckill.dao.repository;

import com.project.seckill.dao.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * Created by yachao on 2018/6/24.
 */
@Repository
public interface UserRepository extends JpaRepository<User, Long> {

    User findUserById(Long id);

    User findUserByTelephone(String telephone);
}
